/** 表单 */
export const formData = {
  userName: '',
  userPhone: '',
  addTime: ''
}
export const formConfig = [
  {
    type: 'input',
    prop: 'name',
    label: '姓名',
    placeholder: '请输入姓名',
    clearable: true
  },
  {
    type: 'input',
    prop: 'userPhone',
    label: '手机号',
    placeholder: '请输入手机号',
    clearable: true
  },
  {
    type: 'date',
    prop: 'addTime',
    label: '注册日期'
  }
]
/** 表格 */
export const tableButtons = [
  {
    name: '开通权限',
    value: 'add',
    type: 'primary',
    size: 'mini',
    icon: 'Plus'
  }
]
export const tableColumns = [
  {
    label: '姓名',
    prop: 'userName'
  },
  {
    label: '手机号',
    prop: 'userPhone'
  },
  {
    label: '注册日期',
    prop: 'addTime'
  },
  {
    label: '剩余天数',
    prop: 'day'
  },
  {
    label: '是否到期',
    prop: 'isexpire'
  },
  {
    label: '到期日期',
    prop: 'expireTime'
  },
  {
    label: '操作',
    prop: 'operation',
    slotName: 'operation'
  }
]

/** 新增 编辑 */
export const aFormData = {
  phone: '',
  expireTime: ''
}
export const aFormConfig = [
  {
    type: 'input',
    prop: 'phone',
    label: '手机号',
    span: 24,
    maxlength: 11,
    clearable: true
  },
  {
    type: 'date',
    prop: 'expireTime',
    label: '到期日期',
    span: 24
  }
]
export const aFormRules = {
  phone: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
  expireTime: [{ required: true, message: '请选择到期日期', trigger: 'change' }]
}
